package date1207.aop.after;

import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;

/**
 * @author Yue
 * @date 2017年12月7日 下午4:24:26
 */
@Aspect
public class CatThrow {
	@AfterThrowing(throwing = "ex", pointcut = "execution(* date1207.aop.after.bean.Gaoshou.*(..))")
	public void doRecoveryActions(Throwable ex) {
		System.out.println("目标方法中抛出的异常:" + ex);
		System.out.println("模拟抛出异常后的增强处理...");
	}
}